package com.appjishu.web.biz.dao;

import com.appjishu.web.model.Demo;
import com.appjishu.web.model.User;
import com.appjishu.web.model.UserInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface UserInfoMapper extends BaseMapper<User> {

    public List<User> selectUserInfoMapper(User user);

    public int deleteUserInfoByIds(Long[] ids);

    public int updateUserInfo(User user);

    int updateNameAndClassNameAndUsernameAndEmailAndPersonalSignature(@Param("name") String name, @Param("className") String className, @Param("username") String username, @Param("email") String email, @Param("personalSignature") String personalSignature, @Param("id") Long id);

    User selectAllById(@Param("id") Long id);

    int insertSelective(User user);

    List<Demo> select(Demo demo);

    @Select("select count(*) from fly_user")
    Long count();

    //    @Select("select * from fly_user limit #{start},#{pageSize}")
    List<User> page(int start, int pageSize);

    List<UserInformation> getUserLog(Long userId);
    //批量新增用户信息
    int batchInsert(List<User> users);

/*    //查询用户信息列表
    List<User> selectlist(User user);*/
}
